package top.wardyan.wbaseswt.util;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;

public class ControlUtil {
	
	public static final Label getLabel(Composite parent, String text, Font font, Integer x, Integer y, Integer width, Integer height, Integer align) {
		Label rs = new Label(parent, SWT.NONE);
		rs.setText(text);
		rs.setFont(font);
		rs.setBounds(x, y, width, height);
		rs.setAlignment(align);
		return rs;
	}

}
